{include /common/header}
<script>
    function runtime(){
        $.ajax({
            url: '{:\mylib\Route::buildUrl('/admin/api/runtime')}',
            type: 'POST',
            dataType: 'json',
            data: {param1: 'value1'},
            success:function(res){
                alert(res.message);
            },
            error:function(){
                alert('系统繁忙！');
            }
        });
    }
</script>
<nav class="navbar navbar-default navbar-fixed-top">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="http://www.ebcms.com/" target="_blank">EBCMS</a>
    </div>

    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li><a href="{:\mylib\Route::buildUrl('/admin/index/main')}" target="main">主页</a></li>
        <li><a href="{:\mylib\Route::buildUrl('/admin/channel/index')}" target="main">内容</a></li>
        <li><a href="{:\mylib\Route::buildUrl('/admin/block/index')}" target="main">碎片</a></li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#" onclick="runtime();">清理缓存</a></li>
        <li><a href="{:\mylib\Route::buildUrl('/admin/plugin/index')}" target="main">插件</a></li>
        <li><a href="{:\mylib\Route::buildUrl('/admin/config/index')}" target="main">设置</a></li>
        <li><a href="{:\mylib\Route::buildUrl('/home/index/index')}" target="_blank">前台</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">管理员 <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="{:\mylib\Route::buildUrl('/admin/index/password')}" target="main">修改密码</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="{:\mylib\Route::buildUrl('/admin/auth/logout')}">退出</a></li>
          </ul>
        </li>
      </ul>
    </div>
  </div>
</nav>
<style>
    .main{
        position: absolute;
        left: 0;
        bottom: 0;
        right: 0;
        top: 50px;
    }
    .main_iframe{
        width: 100%;
        height: 100%;
        display: block;
    }
</style>
<div class="main">
    <iframe src="{:\mylib\Route::buildUrl('/admin/index/main')}" frameborder="0" class="main_iframe" name="main"></iframe>
</div>

</div>
</body>
</html>